package com.woniuxy.member.client;

import com.woniuxy.member.client.param.AddCartParam;
import com.woniuxy.member.client.param.AddStoreOrderParam;
import com.woniuxy.member.client.param.CreatePayOrderParams;
import com.woniuxy.member.client.param.PayOnlineParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@FeignClient(contextId = "memberOrderManageClient",name="member",path="member")
public interface MemberOrderManageClient {

    @PostMapping("/addCart")
    public Result addCart(@RequestBody AddCartParam addCartParam);

    @PostMapping("/addStoreOrder")
    public Result addStoreOrder(@RequestBody AddStoreOrderParam addStoreOrderParam);

    @PostMapping("/creatPayOrder")
    public Result creatPayOrder(@RequestBody CreatePayOrderParams createPayOrderParams);

    @PostMapping ("/payOnline")
    public Result payOnline(@RequestBody PayOnlineParam payOnlineParam) throws Exception;

}
